package com.example.wj.dao;

import com.example.wj.pojo.Book;
import com.example.wj.pojo.Category;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

public interface BookDao extends JpaRepository<Book,Integer> {
List<Book> findByCategory(Category category);
List<Book> findByAuthor(String author);
 Book findByTitle(String title);
 Book findById(int id);


}
